<?php
/**
 * Created by PhpStorm.
 * User: tandunzhao
 * Date: 2018/5/30
 * Time: 下午1:47
 */

namespace App\Modules\Shop\Services;


use App\Modules\Shop\Models\GoodsCategories;
use App\Modules\Shop\Models\Products;

class GoodsCategoriesService
{
    public static function getAll() {
        return GoodsCategories::get();
    }

    public static function getNameById($id) {
        return GoodsCategories::where('id',$id)->value('category_name');
    }
}